<?php
/**
 *============================================================================
 * Cornice PHP Framework & Website Builder
 * Freeware (f) 2011 by Inforo Software & Computer
 *============================================================================
 */
 
/**
 * Base class for layout
 * @author Nicola Dinh
 * @version 2011.04.2217
 */
class layout extends controller {

  /**
   * Render a block
   */
  protected function render_block($block_name) {
    system::page()->render_block($block_name);
  }

  /**
   * Render blocks for certain position
   * @param string $position The name of position, eg. 'left','right','center'
   */
  protected function render_blocks($position) {
    system::page()->render_blocks($position);
  }
  
  /**
   * Render page html
   */
  protected function render_page() {
    system::render_page();
  }
}